<?php get_header() ?>
<?php if ( function_exists('mim_mobile_adsense') ) mim_mobile_adsense(); ?>
<div id="c">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	<h2><?php the_title() ?></h2>
<?php if ( is_page_template('links.php') ) { ?>
	<?php wp_list_bookmarks('title_li=&title_before=<h3>&title_after=</h3>&category_before=&category_after='); ?>
<?php } elseif ( is_page_template('archives.php') ) { ?>
	<h3><?php _e( 'Monthly archives', 'mim' ) ?></h3>
	<ul class="xo">
		<?php wp_list_categories('optioncount=1&title_li=&show_count=1') ?> 
	</ul>
	<h3><?php _e( 'Category archives', 'mim' ) ?></h3>
	<ul class="xo">
		<?php wp_get_archives('type=monthly&show_post_count=1') ?>
	</ul>
<?php } else { ?>
	<?php the_content() ?>
	<?php wp_link_pages('before=<p class="pp">' . __( 'Pages: ', 'mim' ) . '&after=</p>') ?>
	<?php edit_post_link( __( 'Edit', 'mim' ), '<p class="em">', '</p>' ) ?>
<?php } ?>
<?php if ( get_post_custom_values('comments') ) comments_template(); endwhile; else: ?>
	<h2><?php _e( 'Not Found', 'mim' ) ?></h2>
	<p><?php _e( 'Apologies. The page you\'re looking for doesn\'t seem to be here.', 'mim' ) ?></p>
<?php endif; ?>

</div>
<?php get_footer() ?>